#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
using namespace std;
int main()
{
    double n = 0;
    cin >> n;
    if (n > 0)
        cout << (int)(n + 0.5);//(int)(x+0.5);
    else cout << (int)(n - 0.5);

    return 0;
}